package com.xbongbong.pro.statistic.pojo;

import com.alibaba.fastjson.JSONArray;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @ClassName DwHistoryDataPojo
 * @Description 统计图result返回接口head里面child里面的结构
 * @Author mengna.Deng
 * @Date 2021/4/28 19:02
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class ChildValuePojo {
    private static final long serialVersionUID = -1L;
    /**
     * key指
     */
    private String key;
    /**
     * originValue
     */
    private String originValue;
    /**
     * value
     */
    private String value;

    /**
     * values
     */
    private JSONArray values;
    /**
     * 是否是叶子结点
     */
    private Boolean isLeaf;

    /**
     * formId
     */
    private Long formId;

    public ChildValuePojo() {
    }

    public ChildValuePojo(String key, String originValue, String value,Long formId) {
        this.key = key;
        this.originValue = originValue;
        this.value = value;
        this.isLeaf = false;
        this.formId = formId;
    }

    public ChildValuePojo(String key, String value, JSONArray values, Boolean isLeaf,Long formId) {
        this.key = key;
        this.value = value;
        this.values = values;
        this.isLeaf = isLeaf;
        this.formId = formId;
    }
}
